package com.sanji.pay;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@SpringBootApplication
@ServletComponentScan
@Controller
public class SanjiPayApplication {

	public static void main(String[] args) {

		SpringApplication.run(SanjiPayApplication.class, args);
	}

  @GetMapping("/payment")
  public String viewPay(){
    return "payment/pay";
  }
  @GetMapping("/result")
  public String viewResult(Model model){
    model.addAttribute("result","1");
    return "payment/payment_result";
  }
}
